import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a,b;
    double c,d;

    Calculator c1=new Calculator();
    a=sc.nextInt();
    b= sc.nextInt();
    c1.addition(a,b);
    c1.subtration(a,b);
    c1.multiplication(a,b);
    c1.division(a,b);

    c=sc.nextDouble();
    d=sc.nextDouble();
        c1.addition1(c,d);
        c1.subtration1(c,d);
        c1.multiplication1(c,d);
        c1.division1(c,d);
    }
}